using MicroMsg.Storage;
using System;
using System.Collections.Generic;
using System.Windows.Controls;
namespace MicroMsg.UI.UserContrl
{
	public class ScrollNewsPicsCtrlArgs
	{
		public List<TloMedia> mListSnsImg;
		public CirclePagePicsCtrl mPicsCtrl;
		public int mNFirstPicIndex = -1;
		public Panel mPanelHolder;
		public MMUIEvent mDlgShow;
		public MMUIEvent mDlgHide;
		public ScrollNewsPicsCtrlArgs(List<TloMedia> listSnsImg, int nFirstPicIndex, Panel panelHolder, MMUIEvent dlgStart, MMUIEvent dlgEnded)
		{
			this.mDlgShow = dlgStart;
			this.mDlgHide = dlgEnded;
			this.mPanelHolder = panelHolder;
			this.mListSnsImg = listSnsImg;
			this.mNFirstPicIndex = nFirstPicIndex;
		}
		public static bool CheckIsInfoOk(ScrollNewsPicsCtrlArgs scrollNewsPicsCtrlArgs_0)
		{
			return scrollNewsPicsCtrlArgs_0 != null && scrollNewsPicsCtrlArgs_0.mListSnsImg != null && scrollNewsPicsCtrlArgs_0.mDlgHide != null && scrollNewsPicsCtrlArgs_0.mListSnsImg.get_Count() != 0 && scrollNewsPicsCtrlArgs_0.mNFirstPicIndex != -1 && scrollNewsPicsCtrlArgs_0.mPanelHolder != null;
		}
		private void SetImageInfoList(CirclePagePicsCtrl picsCtrl)
		{
			if (picsCtrl != null && picsCtrl.ItemObject != null && picsCtrl.ItemObject.get_Count() != 0)
			{
				this.mListSnsImg = picsCtrl.ItemObject;
				return;
			}
			this.mListSnsImg = null;
		}
	}
}
